<!doctype HTML>

<iframe id="frame"></iframe>
<script>
if (window.testRunner)
  window.testRunner.waitUntilDone();
function test() {
  var content = '<head><base href="resources/"></head><body><img src="base-test-resources/success.png"></body>';
  var doc = document.getElementById("frame").contentDocument;
  doc.firstChild.innerHTML = content;
  if (window.testRunner)
    window.testRunner.notifyDone();
}
window.onload = test;
</script>

